﻿using ScaffoldDemo.Entities;
using ScaffoldSystem.Repositories.Abstract;
using ScaffoldSystem.Services.Abstract;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ScaffoldSystem.Services.Concrete
{
    public class SysUserService : ISysUserService
    {
        private ISysUserRepository sysUserRepository;

        public SysUserService(ISysUserRepository sysUserRepository) 
        {
            this.sysUserRepository = sysUserRepository;
        }

        public SysUser FindUserById(int userId)
        {
            return sysUserRepository.FindUserById(userId);
        }
    }
}
